package com.zhiche.lisa.lspm.service.driver;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.lspm.dao.model.driver.DriverLicenseAttach;

import java.util.List;

/**
 * 司机证照附件 service
 * @since 2018-05-28
 * @author lbl
 */
public interface IDriverLicenseAttachService extends IService<DriverLicenseAttach> {

    /**
     * 删除
     * @param id
     */
    void delete(Integer id);

    /**
     * 根据证照id和司机id获取
     * @param driverLicenseId
     * @return
     */
    DriverLicenseAttach selectByDriverLicenseId(Long driverLicenseId, Long driverId, String attachType);

    /**
     * 根据传入旧的附件信息进行删除
     * @param driverLicenseAttach
     */
    void updateOldAttachDeleteState(DriverLicenseAttach driverLicenseAttach);
}
